﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using JLib.Web;

namespace Jerry_Test_Application
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.textBox3.Text = "http://wenzhai.cnxianzai.com/jiankang/2011/0422/238047.html";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string sb = PageToHtml.getHtmlFromUrl(this.textBox3.Text, Encoding.UTF8);
            
            this.textBox1.Text = sb;
            this.textBox1.Text = HtmlHelper.NoHTML(sb);
        }
    }
}
